import request from '@/utils/request'

const api = {
  statList: '/stat.stat/lists',
  userList: '/user.user/lists',
  vipList: '/user.vip/lists',
  storeList: '/stat.store/lists',
  storeDetail: '/stat.store/detail',
  providerList: '/stat.provider/lists',
  stewardList: '/stat.steward/lists',
  userStewardList: '/user.steward/lists',
  userStewardDetail: '/user.steward/detail',
  stewardPutaway: '/user.steward/putaway',
  stewardlevelPutaway:'/user.stewardLevel/putaway',
  stewardAdd: '/user.steward/add',
  stewardEdit: '/user.steward/edit',
  stewardDownfall: '/user.steward/downfall',
  stewardlevelDownfall:'/user.stewardLevel/downfall',
  storeWalletList: '/wallet.walletStore/lists',
  storeWalletDetail: '/wallet.walletStore/detail',
  providerWalletList: '/wallet.walletProvider/lists',
  providerWalletDetail: '/wallet.walletProvider/detail',
  providerTakeMoney: '/wallet.walletProvider/take',
  storeTakeMoney: '/wallet.walletStore/take',
  storeTakeMoneyApplyList: '/wallet.storeTakeMoneyApply/lists',
  providerTakeMoneyApplyList: '/wallet.providerTakeMoneyApply/lists',
  providerTakeMoneyApplyDownTake: '/wallet.providerTakeMoneyApply/downfall',
  storeTakeMoneyApplyDownTake: '/wallet.storeTakeMoneyApply/downfall',
  providerTakeMoneyApplyPutTake: '/wallet.providerTakeMoneyApply/putaway',
  storeTakeMoneyApplyPutTake: '/wallet.storeTakeMoneyApply/putaway',
  userWalletList: '/user.Wallet/lists',
  userWalletAdd: '/user.Wallet/add',
  userWalletCharge: '/user.wallet/charge',
  storeClerkList: '/stat.clerk/lists',
  allStoreClerkList: '/stat.clerk/detail',
  platformWalletList: '/wallet.wallet/lists',
  platformWalletDetail: '/wallet.wallet/detail',
  feedbackList: '/user.feedback/lists',
  orderStat: '/stat.clerk/detail',
  stewardWalletList: '/wallet.steward/lists',
  stewardWalletDetail: '/stat.stewardStat/detail',
  stewardWalletInfo: '/stat.stewardStat/info',
  vipSendOut: '/user.vip/sendOut',
  storeWalletStat: '/wallet.walletStore/stat',
  storeWalletStatInfo: '/wallet.walletStore/info',
  providerWalletStat: '/wallet.walletProvider/stat',
  providerWalletStatInfo: '/wallet.walletProvider/info',
  stewardWalletStat: '/stat.stewardStat/stat',
  stewardWalletShow: '/stat.stewardStat/show',
  stewardWalletStatList: '/stat.stewardStat/lists',
  stewardInvitUser: '/user.steward/inviteUser',
  billList: '/wallet.bill/lists',
  billShow: '/wallet.bill/show',
	billAdd:'/wallet.bill/add',
 activity_id: '/wallet.bill/add'
}

export function stewardWalletInfo (parameter) {
  return request({
    url: api.stewardWalletInfo,
    method: 'get',
    params: parameter
  })
}

export function stewardWalletShow (parameter) {
  return request({
    url: api.stewardWalletShow,
    method: 'get',
    params: parameter
  })
}

export function stewardInvitUser (parameter) {
  return request({
    url: api.stewardInvitUser,
    method: 'get',
    params: parameter
  })
}

export function stewardWalletStatList (parameter) {
  return request({
    url: api.stewardWalletStatList,
    method: 'get',
    params: parameter
  })
}

export function stewardWalletStat (parameter) {
  return request({
    url: api.stewardWalletStat,
    method: 'get',
    params: parameter
  })
}

export function providerWalletStatInfo (parameter) {
  return request({
    url: api.providerWalletStatInfo,
    method: 'get',
    params: parameter
  })
}

export function providerWalletStat (parameter) {
  return request({
    url: api.providerWalletStat,
    method: 'get',
    params: parameter
  })
}

export function storeWalletStatInfo (parameter) {
  return request({
    url: api.storeWalletStatInfo,
    method: 'get',
    params: parameter
  })
}

export function storeWalletStat (parameter) {
  return request({
    url: api.storeWalletStat,
    method: 'get',
    params: parameter
  })
}

export function vipSendOut (parameter) {
  return request({
    url: api.vipSendOut,
    method: 'post',
    data: parameter
  })
}

export function stewardWalletDetail (parameter) {
  return request({
    url: api.stewardWalletDetail,
    method: 'get',
    params: parameter
  })
}

export function stewardWalletList (parameter) {
  return request({
    url: api.stewardWalletList,
    method: 'get',
    params: parameter
  })
}

export function orderStat (parameter) {
  return request({
    url: api.orderStat,
    method: 'get',
    params: parameter
  })
}

export function feedbackList (parameter) {
  return request({
    url: api.feedbackList,
    method: 'get',
    params: parameter
  })
}

export function platformWalletDetail (parameter) {
  return request({
    url: api.platformWalletDetail,
    method: 'get',
    params: parameter
  })
}

export function platformWalletList (parameter) {
  return request({
    url: api.platformWalletList,
    method: 'get',
    params: parameter
  })
}

export function allStoreClerkList (parameter) {
  return request({
    url: api.allStoreClerkList,
    method: 'get',
    params: parameter
  })
}

export function storeClerkList (parameter) {
  return request({
    url: api.storeClerkList,
    method: 'get',
    params: parameter
  })
}

export function userWalletCharge (parameter) {
  return request({
    url: api.userWalletCharge,
    method: 'post',
    data: parameter
  })
}

export function userWalletAdd (parameter) {
  return request({
    url: api.userWalletAdd,
    method: 'post',
    data: parameter
  })
}

export function userWalletList (parameter) {
  return request({
    url: api.userWalletList,
    method: 'get',
    params: parameter
  })
}

export function stewardEdit (parameter) {
  return request({
    url: api.stewardEdit,
    method: 'post',
    data: parameter
  })
}

export function stewardAdd (parameter) {
  return request({
    url: api.stewardAdd,
    method: 'post',
    data: parameter
  })
}

export function storeTakeMoneyApplyPutTake (parameter) {
  return request({
    url: api.storeTakeMoneyApplyPutTake,
    method: 'get',
    params: parameter
  })
}

export function providerTakeMoneyApplyPutTake (parameter) {
  return request({
    url: api.providerTakeMoneyApplyPutTake,
    method: 'get',
    params: parameter
  })
}

export function storeTakeMoneyApplyDownTake (parameter) {
  return request({
    url: api.storeTakeMoneyApplyDownTake,
    method: 'get',
    params: parameter
  })
}

export function providerTakeMoneyApplyDownTake (parameter) {
  return request({
    url: api.providerTakeMoneyApplyDownTake,
    method: 'get',
    params: parameter
  })
}

export function storeTakeMoneyApplyList (parameter) {
  return request({
    url: api.storeTakeMoneyApplyList,
    method: 'get',
    params: parameter
  })
}

export function providerTakeMoneyApplyList (parameter) {
  return request({
    url: api.providerTakeMoneyApplyList,
    method: 'get',
    params: parameter
  })
}

export function providerTakeMoney (parameter) {
  return request({
    url: api.providerTakeMoney,
    method: 'post',
    data: parameter
  })
}

export function storeTakeMoney (parameter) {
  return request({
    url: api.storeTakeMoney,
    method: 'post',
    data: parameter
  })
}

export function providerWalletDetail (parameter) {
  return request({
    url: api.providerWalletDetail,
    method: 'get',
    params: parameter
  })
}

export function providerWalletList (parameter) {
  return request({
    url: api.providerWalletList,
    method: 'get',
    params: parameter
  })
}

export function storeWalletDetail (parameter) {
  return request({
    url: api.storeWalletDetail,
    method: 'get',
    params: parameter
  })
}

export function storeWalletList (parameter) {
  return request({
    url: api.storeWalletList,
    method: 'get',
    params: parameter
  })
}

export function stewardPutaway (parameter) {
  return request({
    url: api.stewardPutaway,
    method: 'get',
    params: parameter
  })
}

export function stewardlevelPutaway (parameter) {
  return request({
    url: api.stewardlevelPutaway,
    method: 'get',
    params: parameter
  })
}
export function stewardDownfall (parameter) {
  return request({
    url: api.stewardDownfall,
    method: 'get',
    params: parameter
  })
}

export function stewardlevelDownfall (parameter) {
  return request({
    url: api.stewardlevelDownfall,
    method: 'get',
    params: parameter
  })
}
export function userStewardList (parameter) {
  return request({
    url: api.userStewardList,
    method: 'get',
    params: parameter
  })
}

export function userStewardDetail (parameter) {
  return request({
    url: api.userStewardDetail,
    method: 'get',
    params: parameter
  })
}

export function stewardList (parameter) {
  return request({
    url: api.stewardList,
    method: 'get',
    params: parameter
  })
}

export function storeDetail (parameter) {
  return request({
    url: api.storeDetail,
    method: 'get',
    params: parameter
  })
}

export function providerList (parameter) {
  return request({
    url: api.providerList,
    method: 'get',
    params: parameter
  })
}

export function storeList (parameter) {
  return request({
    url: api.storeList,
    method: 'get',
    params: parameter
  })
}

export function userList (parameter) {
  return request({
    url: api.userList,
    method: 'get',
    params: parameter
  })
}
export function vipList (parameter) {
  return request({
    url: api.vipList,
    method: 'get',
    params: parameter
  })
}

export function statList (parameter) {
  return request({
    url: api.statList,
    method: 'get',
    params: parameter
  })
}

export function billList (parameter) {
  return request({
    url: api.billList,
    method: 'get',
    params: parameter
  })
}

export function billShow (parameter) {
  return request({
    url: api.billShow,
    method: 'get',
    params: parameter
  })
}

export function billAdd (parameter) {
  return request({
    url: api.billAdd,
    method: 'get',
    params: parameter
  })
}